#!/usr/bin/env python
from col.disc import disc_pack
from col.gatherer import Gatherer
import threading
discs = disc_pack()
cv = threading.Condition()
gath = Gatherer(cv, discs)
gath.start()
cv.acquire()
discs.add('OQv2CkDmFRI6XLoYuO7C9EzC1nw-')
cv.notify()
cv.release()
cv.acquire()
discs.add('0IkMFTax2E78VWKlIumxwgcd7wQ-')
cv.notify()
cv.release()
gath.stop()
while gath.isAlive():
  pass
discs.prettyPrint()
